public class MaoPao {
    public static void main(String[] args) {
        int[] arr={31, 79, 152, 7, 64, 197, 66, 101, 30, 38, 2, 51, 144, 135, 47, 179, 14, 23, 75, 6, 181, 20, 183, 199, 96, 108, 98, 188, 84, 166, 1, 113, 106, 87, 93, 39, 154, 146, 154, 27, 44, 96, 37, 174, 127, 131, 79, 181, 115, 195, 133, 132, 81, 169, 17, 114, 29, 50, 128, 156, 199, 132, 180, 85, 194, 37, 5, 195, 139, 108, 26, 178, 107, 22, 75, 130, 71, 28, 119, 43, 114, 180, 4, 102, 109, 12, 110, 58, 69, 173, 66, 185, 43, 3, 11, 151, 41, 145, 166, 121};
        //排序数组
        for (int a=0;a<arr.length-1;a++){
            for(int b=0;b<arr.length-1-a;b++) //所需比较个数越来越小
                {
                if(arr[b]>=arr[b+1]){
                    int x=arr[b+1];
                    arr[b+1]=arr[b];
                    arr[b]=x;//大值和小值交换
                }
            }
                //遍历已排序数组
            }for (int i=0;i<arr.length;i++){
            System.out.print(arr[i]);
        }
    }
}
